//
//  DiscountSmallImageCollectionViewCell.m
//  AroundTheWorld
//
//  Created by dllo on 16/5/18.
//  Copyright © 2016年 IfelseGo an. All rights reserved.
//

#import "DiscountSmallImageCollectionViewCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height

@implementation DiscountSmallImageCollectionViewCell


-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self doSometing];
    }
    return self;
}

-(void)doSometing{
    
    self.contentView.dk_backgroundColorPicker = DKColorPickerWithRGB(0xffffff,0xCFCFCF);
    
    self.smallImageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT / 190 * 120)];
    self.smallImageV.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.smallImageV];
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, HEIGHT / 190 * 125, WIDTH, HEIGHT / 190 *40)];
    self.titleLabel.backgroundColor = [UIColor clearColor];
    self.titleLabel.numberOfLines = 0;
    self.titleLabel.textColor = [UIColor blackColor];
    self.titleLabel.font = [UIFont systemFontOfSize:15];

    [self.contentView addSubview:self.titleLabel];
    
    self.priceoffLabel = [[UILabel alloc] initWithFrame:CGRectMake(0 , HEIGHT / 190 * 180, WIDTH / 2, HEIGHT / 190 *10)];
    self.priceoffLabel.backgroundColor = [UIColor clearColor];
    self.priceoffLabel.textColor = [UIColor grayColor];
    self.priceoffLabel.font = [UIFont systemFontOfSize:12];
    [self.contentView addSubview:self.priceoffLabel];
    
    self.priceLabel = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH / 2 + 30, HEIGHT / 190 * 180, WIDTH / 2 - 30, HEIGHT / 190 *10)];
    self.priceLabel.backgroundColor = [UIColor clearColor];
    self.priceLabel.textColor = [UIColor redColor];
    self.priceLabel.font = [UIFont systemFontOfSize:12];
    [self.contentView addSubview:self.priceLabel];
    

}

@end
